package com.cbtService.AndroidSDK;

/**
 * Created by Administrator on 2017/5/5.
 */

public class HardwareControler {
    static {
        System.loadLibrary("serialtest_runtime");
    }
    public static native boolean _init();
    /* Serial Port */
    static public native int openSerialPort( String devName, long baud, int dataBits, int stopBits );
    /* 通用接口*/
    static public native int write(int fd, byte[] data);
    static public native int read(int fd, byte[] buf, int len);
    static public native int select(int fd,int sec,int usec);

}
